reduce math weirdness (thanks to Steven Yi)