removed trailing newlines