i was setting x=i inside the awk script to see if i could then use it in the print statement. after trying a few different things, i decided to post here and just edited the code to reflect what i had originally, apparently forgetting to remove the $x.