change regexpr to grep