udpates to index