added leave code
added leave code