improves max parallel task calc