remove some useless code