updated on error callback