made animationLimit and animationStep a passed in argument instead of
hardcoded