clean the  codes