partially fixed the concept for separate lines in filesaving