updated for refactor of unbounded stacks and queues