Least Square planar BGF fitting working