update function_model