made max=0