do check using type