exported swap_text