ball integration