output only written bytes