renamed define to def to be more consistent with SVG element naming