added error to log