fixed cycle detection