manily clean the code