improve maxcomplexity to 3