avoid unnecessary newlines