fix deprecations
failing test for 186