removing out of queue correctly