made comptible to previous version by removing code of smoothing and lm