add explicit return type for 'case'