prints a table with selected values, intermediate