update index on branch