added error to callback