change path to a swap