added printDPTable function