refactoring SVG