cleaning up history