new method updateWhenModified() to allow direct call