added index for posts