fixed a deprecation