changed virtual_memory call to swap_memory