gi: extract as a method