modified according to the document