replace reference with notes