updated to use jonathans "output for tony"