added a buffer to the end time so it wont occasioanlly restart the animation after tests