change the command queue to deque to allow clearing of one item