account for out of bounds