added logic to find matches. centering cell data