implemented maxDegreeOfParallelism