get stuff out of the front of the queue