clean up the codes