move making up of the filename to filter_filename