time granularity working version