fixing up animation by using constraints.