make discard bytes global