extract type