clean some useless code