make it so you can filter an array using the index as well as value