add swap direction example