updated to grepl