best explanation on switching