better reorganization inside DrawingElement class