key and ctr return r value