f_function