stop cyclic paths