add complexity calculation in workflow