fixes #177; removed bad reference and simplified calculation
Merge pull request #184 from BrianAdams/v2.5.0-rc1

fixes #177; removed bad reference and simplified calculation