changed order of instantiation on barriers