Finding the extema of the map works nicely and everything compiles.  Im happy.