switching the case