leave method