ensuring that adjusted matrix is output