improved formatting and specification of complex least squares