commit after making stack and queues