fixed pred/func type error