rewrite the parallel deformer and its helper routines