change refcount to coin