ensures no duplicate posts are counted