rewrite relation with svg