update logic on parsing error