remove deprecation warnings for 3.2