fix R and overtyping