add code to avoid duplicate posts