start to implement time interval discretization