reFileName function