rvm as a function