removed 'def rsquared (...)' function