first pass of trace