change func type