setup curve