mostly fixed equation formatting