fix issue with default number of processing in parallel code being 1 rather than the number of available cores