updates switches