refactor svg element line but i dont like it