update IO.r
rename function