modify pack.h