through a ref