matrix e and d1,d2 are symmetric!