clean the code for build