prepare for animation