added vector sum