removed exit after solve()