added a deprecation warning