added deprecation warning