simplifying code through using svg groups