changes queue_print method