modifying grep regex script