         case Section.CurrentLocation.rawValue:
             return 1
         case Section.UserPickedLocation.rawValue:
-            return (userPickedLocationPin == nil ? 0 : 1)
+            return (pickedLocationCoordinate == nil ? 0 : 1)
         case Section.Placemarks.rawValue:
             return placemarks.count
         case Section.SearchedLocation.rawValue:

        }
    }

    override func viewDidLoad() {
        super.viewDidLoad()



        case Section.Placemarks.rawValue:
            let placemark = placemarks[indexPath.row]
            selectedLocationCoordinate = placemark.location.coordinate

        case Section.SearchedLocation.rawValue:
            let placemark = self.searchedMapItems[indexPath.row].placemark
            selectedLocationCoordinate = placemark.location.coordinate

        case Section.FoursquareVenue.rawValue:
            let foursquareVenue = foursquareVenues[indexPath.row]
            selectedLocationCoordinate = foursquareVenue.coordinate

        default:
            break
        }

        if let userPickedLocationPin = userPickedLocationPin {
            let region = MKCoordinateRegionMakeWithDistance(userPickedLocationPin.coordinate, 200, 200)
            mapView.setRegion(region, animated: true)
        }

