change format of document