add least squares comparison. forgot to add test data before.