remove deprecation warnings.