added missing summate statements