removed erroneous printing of newlines