removed output statements if nothing is in queue