removed duplicate case in switch