redid the argmin so that the input doesn't need to implement negate