improving the search
fixing a mismatch