added variable maxEpandNodes on search