removing state change calls that do not change the value