use grep over select for consistency and efficiency