forgot to change a ref to tr