fix document format