activate switch