make sure nothing goes outside of the ball