extracting method