Seoperate functions for history and summary