working on seperating and recombinding the curved lines