modifying curve format