restrict number of changes