BUG: the time interval code seems to work now