update head in Index