adding timings to debug slowness