works only with some files