bouncing ball processing