working out the timing