refactor helper suggest_filename