fixes math formatting