removed a deprecation warning