added posts logic