changed queuing technique