implemented enforcing complexity thresholds