fct_generator function

Factor name generator