maxed at 0 for two emax and rows