remove non-used codes