added the option to parallel process the shapes