updated animation generator