reduced cyclomatic complexity