fitting multiple lines problem solved