node leaving works