removing deprecation warnings