case statements fixed