added strict mode to search