clean up a code