update to handle invalid vertical extents. Edits by Leah, commit by SMR