update complexity analysis