add value to index