added timings for preprocessing