small grep modifications