reduced cyclomatic complexity by 1