solve the problem