add pack type check.
add pack type check.