added pretty print for tables