capture bytes