working on curve object