packing all of the structs