switching method in communication