using a latching element for resetting a switching element