re implement ball fitting