added header back as bytes