add function for combining two package into one byte array