removes deprecation warnings due to old scopes syntax