some changes to the strcuture of the document