fixed repeating cycle length method to be clearer