outsourced complexities from main.js to configComplexities.js
refactor