added pack function. got easier to store multiple calls result  in an single array