modified nextValue