added DP print method