created index for posts