switched push and pop