fixed argmin and negCmp