added parallel raytracing