case statement in queue peek