add method "repeatPrevious" and modify "or"'s parameter