do reference counting right