first pass of converter