minor explanation of case statement