now the pattern territory is filtered based on the items list