added in code to label nonbrand keywords
fixed bug on loop