prevent recursive reference to a Ref type