change in method switch template