improve support fo the general least square fitting.