testing on animation function