improve document format