shouldn't you reset it to its current value at the end to avoid side effects ?