control_action_function and ramp function