replace two case switch with if