modify errors in model