clean the rep