removed svg; now not using global vars