Update cycle.cpp