update to animation class