prints a table with selected values