initial queue logic