applied optional to extractor