tweak AC-AC detection