fixed math formatting