cycle matching