changed is_printed to is_in_queue