added another fix for the odd addition of newlines