fix deprecations calls