end() pops the stack