change search to use grep