remove wait time for a second
refactor to output direct to STDOUT and pass that output variable around