fixes timestamp logic