error checking for geo location