prevent memory overruns.