removing switchAction.