work on number of goods near categ and subcateg