add matrix calculation