clean up extra newlines