worked on all possible matches for value finding