switched template