bug fix and delete useless files