first version without choice of time interval