mode formatting