improved dpTable print function