support to draw curve with degree n
initial