added history time and added to length