fix formatting for xyz conversion equations