cleaing up rname