modify index