clean the codes