avoid reusing variable name 'results' in overlapping scopes