add matrix T