added coefficient of determination R^2 api