use parallel instead of multicore