re-write of %what_references [table]