parallelizing shapes grouping