changed the swap_in