new timeglider code for data error fix