add type to animation