optimize rounding and drawing grid
add B-spline