add searchproblem function