Updateto switch statement