Cleaning codes