fixed to write using only byte