added logic to handle bad or missing zipcodes