go ahead and remove duplicates in history