deal with errorsn