add max core for mclapply