my queue functionality