fixed parallel loop