added xy property to the curve object