incorporate sanity checks on coordinates