added new queue functions