updated fastlm function