added reposd and changed post_index to process output