worked more on outputing svg