base code for construct parallize