added searchDepth to one-parameter constructor