modify switch