updated animation helper