adding deprecation warnings