added error production to rvariable