add active_function