add dynamic printing of results