modal exit is improved