fix deprecation

needs review