clean up modified codes