swap fonk with pointer

swap fonk with pointer