fixed func prototype to match prev change