add func cleanAll in Cycle.cpp