correct date, and delete duplicate