removing deprecations warning