add maxScore option