changes to fifo queue implementation