check type

add checktype for the type