pop(stack) fixed to pop(&stack)