more rationals speed optimizations