added flag for print-dist-matrix