updated todo
think I fixed it crashing when there are duplicate histories, updated TODO