added code to process reddit posts