relax (improve?) bounds check