simplified and shortened queuer function