make the time interval example works