addded diagonalizing prior