missing parens in extract_mapped logic