fixed up how grepping works