clean useless code.