my final twist with next & exit added