fixing valid-files