add step out functionality