modify query so we can search the whole table