added deleteFromQueue funciton