tidy up history