make queue traversal more obvious in queue.c