refine the bouncing ball