set mc.cores = 1 (was missing in example of NNshapeReg) to comply with CRAN rules