added a cleanmode loop