moving $name up in the processing to use it in remove from queue if needed