now tries to get global minima