simplify queue.get method