generalized makeCycle a bit.