added hendling for double new-line