add jumping out functionality