the math didn't end up being wrong, but found an issue with argument type, and went ahead and fixed it