updata complecity analyse and improvements