fix type warnings
summarize
switchCase()
summarizes