minor change: removed d <-> r(k) synonym