update with complexity