modified path tracing and timing