correct parfor loop