recomputing cycle length