update swap example