another trial using refcounting