rewrite condResponse in a more readble style (hopefully)