defined error callback