constructing post index and adding voting system to index