fixed faulty method extraction.