minor formatting change to animation-loop code