use grep over select for consistency and efficiency
pass block directly to grep