set expected bytes