added leave command on prototype