changing matches index