checking for already solved problems.