improve printing recursive tables