add index to posts