refactor svg