more rationals optimizations