added findStartOfCycle()