so why don't you do 

>modes[R] = R