fix up math formatting