initialized max_f