update index to remove -g