CHANGED:applied the regression function;