and I don't know why we have deprecated_func defined below. Is it used somewhere?