getting animation to work