fix case statements