change r to int
add oher language