populating files with thier document type