03.04.13 expanded ddmatrix() functionality