why not just check for scalar(@hits) in the words for loop and still do the trace?