modified check bounds for io purposes