changed the queueing data structure