cleanup SVG code

cleanup code.