added a check of change