trying to make each post an object