dot matrix based on nested data