switching  and  parameters