remove queue_with_priority static method
refactoring