changed some of the anim implementation and tightened the metal max index