svg dynamic working