incorporated google api to extract state