out of bounds checks on terrain data