matrix elements sum added