move room occupant tracking to helper