add code to clean up posts collection