adding matJ