added write to byte