revise mathToR converter