change err4 to err