Why it is not setting or resetting.