combined cycle.h into animation.h