fixed error in strcuture of document