remove gratuitous usage of Double in favor of Rational