added check for conflicting post ids