fix method of detecting no change