case statement syntax mistake fixed