remove redundent case