use all g elements not just ones that are a direct child of svg element