making the create method for the documents less complicated