added sum=0