update animation to use class method and remove old array method