added document to main