add utility function to CaseBlock