initialize to zero here and remove the set in the else (or initialize and re-set it down there too)