account for page boundary overruns