new functions prevCycle, nextCycle, center, centerHorizontal
refactoring