added timing for total time