change in addNewValue method