pretty format of record