adds functions and table to display results