revised posts logic