update contour and ball size