remove some useless codes