update index and gems