application of the stack