made the queue private and added properties