update grep searching for speed increase