updated to use related posts