problems with cyclic paths