clean the code for deployment