delete useless file and fix some bugs