added extract type