removed unneeded -nonewline flags