put a visibility modifier on exit