added byte length to header