wait with queue