formatSolutions nearly done