added new methods to the Queue