first curve construction
addin .m