Effect of wall boundary on the scrape-off layer losses of high harmonic fast wave in NSTX and NSTX-U