terminal matrix classes...