updated animation sample