refactoring of file identity