added set_format_unit method