remove double assignment and addition to  0

remove double assignment and addition to  0