finished solveFrame