first pass layout