change retval arguments to MutableHandleValue