added fitting and point2d
added fitting and point2d