removed unused unpack func