trying to fix problems with queue