fixed my custom rgrep function