#switching-logic