updating complexity