added timeit for time measurement