smart: initialize the error variable