add pack.cpp