out of bounds detection