clean the codes.