modifed matrix symmetric