access to elements in error handler