little change to animation end method, which does not seem to change
anything but makes more sense