adding the timing part