rewrite toIUPAC