added controller of solveThread