separated out stepwise animation into its own function