update  switch case