Update max,min,pos,neg to correct implementation