add curly braces and enable concurrent enumeration