add variable length if message has bytes