text changed index