more math tweaks