Update pack.cpp