fixed unpack()