clarified usage of the ref type.