removed extra call to pack