improve search for goal