ensure no out of bounds on other dimensions