changed posts to namedtuple