swap script