finishing cleaning code for next stage of production