different solution for problem.