begin to fix func_value as param bug