cleaning set_config
remove a shameful loop
create translate frequency
use translate frequency