removing deprecation warning