used concatenate function in data packet