clean the code-removed unused method