Compressing the stack

Compressing the stack