grep improvement