break up loop to build table then build commands
have it working much faster now that i build table first still having difficulties assigning registers to user def vars