added clearmatches()