simplifying queue checking