implemented leave