Update queue.c

better than before