adding stack-queues