added keyword to putdocument call
 stuff