correct deprecation notices