update complexity