a more sane approach to finding field ranges of a dataset