changing deprecate to deprecateFunc