added leave and join