removed wrong jmaxsum