add matrix eq., document visibility.