modify index in root