clears deprecation warnings