delete some idle files and optimized some code