cycle detection for AO