rval basic functions