wiring up results calculation and population. Should change state once finished divie-ing