add pack type check.