wrap output into function to avoid polluting the global namespace (see #16)