least square in progress