setup Grep funciotn