added preprocessing of posts