retain output value when reset()