outlier matrix handling added