fixes case statement