added leave command