working on history tree