added fix for deprecation message