fixed method-complexity smell