updating 3 and trying to fix deprecation notices