switching to the last value