added "active_var" variable to network