a problem with queue during refactoring