clean the code-removed unused code