cleaning the codes