reformatted case statements