replacing title with ref