putting files in right dict