enclose everything in a while loop
str vs int bug; check with jeff beck to see why