adding deprecation warning