fixes the is_complete
solve returns a dictionary