fixed queue/stack for clarity