fixed indexerror in findmatch to allow for iteration over entire list, this will aid in checking for duplications