redirecting to swap on insert