extracting type