clean useless codes