extract methods in ranges.