using helper to output results