added ability to detect when someone leaves