small changes in parLapply call