fix R0 clobbering