edit ref