non-working code for manual extractor