better layout for queue functions