time update and dataset cleaning