added pack() call