categorizing the files